package com.young.springdemo.service.BuildModelTest;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

//@Component
public class test {

//    @PostConstruct
    public void test() throws Exception {
        Class<?> aClass = Class.forName("com.young.springdemo.service.BuildModelTest.MemoryModelBuilder");
        ModelBuilder modelBuilder = (ModelBuilder) aClass.newInstance();
        Model construct = modelBuilder.construct();
        System.out.println(construct.toString());
    }

}
